<%-- 
    Document   : export
    Created on : Nov 10, 2011, 4:35:13 PM
    Author     : xjuraj
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<s:layout-render name="/WEB-INF/pages/layout.jsp">
    <s:layout-component name="head">

    </s:layout-component>
    <s:layout-component name="title">
        <f:message key="page.export.title"/>
    </s:layout-component>
    <s:layout-component name="afterTitle">

    </s:layout-component>
    <s:layout-component name="content">

        <s:link beanclass="sk.lieskove.jianghongtiao.paris.webclient.web.ExportActionBean" 
                event="exportArff"><f:message key="page.export.arff"/></s:link>
            Split by language
            <ul>
            <c:forEach var="lang" items="${langList}">
                <li>
                    <h2><f:message key="sk.lieskove.jianghongtiao.websearch.document.preprocessing.${lang}"/></h2>
                    <s:form  acceptcharset="UTF-8" method="GET" 
                             beanclass="sk.lieskove.jianghongtiao.paris.webclient.web.ExportActionBean">
                        <h3><f:message key="page.export.trainingset"/></h3>
                        <s:select name="trainDocTypes" multiple="">
                            <s:options-enumeration  
                                enum="sk.lieskove.jianghongtiao.websearch.enums.DocumentType"/>
                        </s:select>
                        <h3><f:message key="page.export.testingset"/></h3>
                        <s:select name="testDocTypes" multiple="">
                            <s:options-enumeration  
                                enum="sk.lieskove.jianghongtiao.websearch.enums.DocumentType"/>
                        </s:select>
                        <br/>
                        <input type="hidden" value="${lang}" name="language"/>
                        Baseline: <s:text name="baseline"  value="60">60</s:text> (1...99) default: 60
                        <br/>
                        Words to keep: <s:text name="wordsToKeep" value="500">500</s:text> (1...9999) default: 100
                        <br/>
                        <s:submit name="splitByLang"><f:message key="page.export.Download"/></s:submit>
                    </s:form>
                </li>
            </c:forEach>
        </ul>

    </s:layout-component>
    <s:layout-component name="sidebar">

    </s:layout-component>
</s:layout-render>